package com.shiva.oms.logview.api.view;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;


/**
 * 
 * 
 * 
 * <pre>
 * HISTORY
 * ****************************************************************************
 *  ID    DATE            PERSON            REASON
 *  1     2018年5月7日         LA.01367604           Create
 * ****************************************************************************
 * </pre>
 * 
 * @author LA.01367604
 * @version 1.0
 */
public class AboutMe extends JDialog {

    private final JPanel contentPanel = new JPanel();

    /**
     * Launch the application.
     */
    public static void main(String[] args) {
        try {
            AboutMe dialog = new AboutMe();
            dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
            dialog.setVisible(true);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    /**
     * Create the dialog.
     */
    public AboutMe() {
        this(null);
    }

    public AboutMe(JFrame parent) {
        super(parent, true);
        setTitle("关于");
        setBounds(100, 100, 363, 279);
        getContentPane().setLayout(new BorderLayout());
        contentPanel.setBackground(Color.WHITE);
        contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
        getContentPane().add(contentPanel, BorderLayout.CENTER);
        contentPanel.setLayout(null);

        JLabel lblNewLabel_1 = new JLabel("");
        lblNewLabel_1.setBounds(10, 10, 327, 191);
        ImageIcon icon = new ImageIcon(AboutMe.class.getResource("/resources/aboutme.png"));
        ImageIcon icon2=new ImageIcon(icon.getImage().getScaledInstance(lblNewLabel_1.getWidth(), lblNewLabel_1.getHeight(), Image.SCALE_DEFAULT));
        lblNewLabel_1.setIcon(icon2);
        contentPanel.add(lblNewLabel_1);

        JLabel lblNewLabel = new JLabel("联系我们 © 2018 SHIVA_OMS_CORE");
        lblNewLabel.setFont(new Font("微软雅黑", Font.BOLD, 12));
        lblNewLabel.setBounds(55, 201, 228, 30);
        contentPanel.add(lblNewLabel);
    }
}
